package com.qf.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqConfig {


    /**
     * 创建email的消息队列
     * @return
     */
    @Bean
   public Queue queue(){
        return new Queue("damai-email-queue");
    }
}

